﻿<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeFile="ClassList.aspx.cs" Inherits="PeachLite.Admin.ClassList" Title="类目管理"%>

<asp:Content ClientIDMode="Static" ID="c1" runat="server" ContentPlaceHolderID="cphHead">
    <script type="text/javascript">
        function del(e) {
            var cid = $(e).parents("tr").attr("cid") ? $(e).parents("tr").attr("cid") : "";
            var name = $(e).parents("tr").children("td:eq(0)").text();
            if (!confirm("确定要删除栏目：" + name + "?")) {
                return;
            }
            if (cid == null || cid == "") {
                return;
            }
            fx({ cid: cid, c: AJAXCODE.DeleteClass, r: Math.random() }, function (data) {
                if (data.Success) {
                    $(e).parents("tr").remove();
                }
            });
        }
    </script>
</asp:Content>

<asp:Content ClientIDMode="Static" ID="c2" runat="server" ContentPlaceHolderID="cphMain">
    <div class="box box1">   
        <div class="hd">
            <div class="tit">
                <i class="iconfont">&#xf00a;</i>
                <span>栏目管理</span>
            </div>
        </div>
        <div class="bd">
            <div class="data clist">
                <div class="tp clearfix">
                    <div class="op"><a class="btn btn3" href="ClassEdit.aspx" title="添加新栏目">添加</a></div>
                </div>
                <table>
                    <tr>
                        <th class="th1">栏目名称</th>
                        <th class="th2">描述</th>
                        <th class="th3">操作</th>
                    </tr>
                    <asp:Literal ID="lt0" runat="server" ClientIDMode="Static"></asp:Literal>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
